package com.pansoft.newasset.model;

/**
 * 我的设备
 *
 * @autor yqs
 * @date 2019/1/29 9:35
 **/
public class NewAssetDeviceModel {
    private String name;
    private String deviceId;
    private Object icon;

    private NewAssetDeviceModel(Builder builder) {
        setName(builder.name);
        setDeviceId(builder.deviceId);
        setIcon(builder.icon);
    }

    public String getName() {
        return name;
    }

    public NewAssetDeviceModel setName(String name) {
        this.name = name;
        return this;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public NewAssetDeviceModel setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public Object getIcon() {
        return icon;
    }

    public NewAssetDeviceModel setIcon(Object icon) {
        this.icon = icon;
        return this;
    }


    public static final class Builder {
        private String name;
        private String deviceId;
        private Object icon;

        public Builder() {
        }

        public Builder name(String val) {
            name = val;
            return this;
        }

        public Builder deviceId(String val) {
            deviceId = val;
            return this;
        }

        public Builder icon(Object val) {
            icon = val;
            return this;
        }

        public NewAssetDeviceModel build() {
            return new NewAssetDeviceModel(this);
        }
    }
}
